package com.atguigu.springcloud.entities;

/**
 * @author rpq
 * @version 1.0
 * @date 2020/11/11 10:05
 */
public enum MsgEum {
    S_001(200,"请求成功"),
    P_002(200,"查询成功"),

    E_500(500,"代码错误")
    ;


    private Integer code;
    private String msg;

    MsgEum() {
    }

    MsgEum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
